const router = require('express').Router();

router.get('/list', (req, res) => {
	res.success({
		name: 'admin',
		avatar: 'https://img2.baidu.com/it/u=3118149361,421630814&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
		introduction: 'I am a super administrator'
	});
});

router.post('/create', (req, res) => {
	res.json({
		code: 200,
		message: 'success',
		data: {
			name: 'admin',
			avatar: 'https://img2.baidu.com/it/u=3118149361,421630814&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
			introduction: 'I am a super administrator'
		}
	});
});

router.post('/update', (req, res) => {
	res.json({
		code: 200,
		message: 'success',
		data: {
			name: 'admin',
			avatar: 'https://img2.baidu.com/it/u=3118149361,421630814&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
			introduction: 'I am a super administrator'
		}
	});
});

router.get('/delete/:id', (req, res) => {
	res.json({
		code: 200,
		message: 'success',
		data: {
			name: 'admin',
			avatar: 'https://img2.baidu.com/it/u=3118149361,421630814&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
			introduction: 'I am a super administrator'
		}
	});
});

router.get('/detail/:id', (req, res) => {
	res.json({
		code: 200,
		message: 'success',
		data: {
			name: 'admin',
			avatar: 'https://img2.baidu.com/it/u=3118149361,421630814&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
			introduction: 'I am a super administrator'
		}
	});
});

router.get('/siteInfo', (req, res) => {
	res.json({
		code: 200,
		message: 'success',
		data: {
			name: 'admin',
			avatar: 'https://img2.baidu.com/it/u=3118149361,421630814&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
			introduction: 'I am a super administrator'
		}
	});
});

module.exports = router;